// [[ OnflowGenerator File UUID: 67d46bf07afd4c4d9e1e5f0937765866  ]]
package com.itdct.onflow.system.file.mapper;

import com.itdct.onflow.core.mapper.BaseMapper;
import com.itdct.onflow.core.vo.KeyLabelValueVo;
import com.itdct.onflow.system.file.entity.SysFileEntity;
import com.itdct.onflow.system.file.qo.SysFileSearchQo;
import com.itdct.onflow.system.file.vo.SysFileDetailVo;
import com.itdct.onflow.system.file.vo.SysFileListVo;

import org.apache.ibatis.annotations.Mapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Date;
import java.util.List;

/**
 * @author DCTANT
 * @date 2025-09-23 16:16:15
 * @version 1.0
 * @description 系统文件管理查询工具
 */
@Mapper
public interface SysFileMapper extends BaseMapper<SysFileEntity> {
    @Nullable
    SysFileDetailVo findById(Long id);

    @NotNull
    List<SysFileListVo> findByList(SysFileSearchQo qo);

    @NotNull List<SysFileEntity> listExpireFiles(Date expireTime, Date now);

// [[ OnflowGenerator Range (- selectFunctions -) Start ]]

    @NotNull
    List<KeyLabelValueVo> selectFileNameList(SysFileSearchQo qo);

// [[ OnflowGenerator Range (- selectFunctions -) End ]]

}
